#ifndef INCFILE1_H_
#define INCFILE1_H_	true

#include "SPI.h"

#define CCxxx0_RC			0x34
#define	CCxxx0_TC			0x35
#define	CCxxx0_IDLE			0x36

#define CCxxx0_TXBUF		0x3F
#define CCxxx0_RXBUF		0xBF
#define CCxxx0_BIRST		0x40

#define CCxxx0_RXBYTES		0x3B
#define CCxxx0_TXBYTES		0x3A
#define BYTES_IN_RXTXFIFO	0x7F

class clRF1101: public clSPIDeviceWReg{
	public:
		clRF1101(clSPI *lpSPI, PortStruct Port, ePins lCSPin);
		void RFInit(void);
		bool ReadBufSingle(unsigned char *Byte);
		void WriteBufSingle(unsigned char *Byte);
		unsigned char GetRXBufferSize(void);
		unsigned char GetTXBufferSize(void);
		unsigned char GetStatus(void);
};

#include "RF1101.cpp"

#endif